/* ================= BASE ================= */

body{
  background:black;
  color:#fff;
  font-family:Segoe UI, sans-serif;
  overflow-x:hidden;
}

/* ================= HEADER ================= */
.top-header{
  height:90px;
  background:#000;
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:1000;
    border-bottom:1px solid #1f2937;
}
@media (max-width: 576px){
  .top-header h6{
    display:none;
  }
}
@media (max-width: 576px){

  /* right side container ko visible rakho */
  .top-header .text-end{
    display:block !important;
    text-align:left !important;
    margin-top:6px;
    margin-left: 10px;
  }

  /* text ko wrap allow karo */
  .top-header .text-end div{
    white-space:normal;
    word-break:break-word;
    font-size:10px;
    line-height:1.4;
  }
}

@media (max-width: 768px) {
  .head-remove {
    display: none;
  }
 .text-end.small .side {
    font-size: 10px !important;
  }
  .d-flex img {
    width: 90px;   /* yahan size adjust kar sakte ho */
    height: auto;
  }
}

/* ================= MAIN ================= */
.main-wrapper{
  margin-top:100px;
}

.sidebar{
  background:black;
  position:fixed;
  top:92px;                 /* header height */
  left:0;
  width:250px;

  height: calc(100vh - 93px);  /* ⭐ MOST IMPORTANT */
  overflow-y: auto;            /* scroll enable */
scrollbar-width: thin;
  scrollbar-color: #302f2e #000;
  padding:10px;
  z-index:999;
}

.sidebar::-webkit-scrollbar{
  width: 6px;
}

.sidebar::-webkit-scrollbar-track{
  background: #000;   /* BLACK background */
}

.sidebar::-webkit-scrollbar-thumb{
  background: #ffc107;  /* Yellow thumb */
  border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover{
  background: #e0a800;
}
/* MENU LIST */
.sidebar ul{
  list-style:none;
  padding:10px 0;
  margin:0;
}


/* MENU ITEM */
.sidebar li a{
  display:flex;
  gap:12px;
  align-items:center;
  padding:13px 20px;
  color:#cbd5e1;
  font-weight: 600;
  text-decoration:none;
  font-size:16px;
  transition:.25s;
    margin-top: 4px;
}

/* ICON */
.sidebar li a i{
  font-size:16px;
  min-width:18px;
    font-weight: 600;
}

/* ACTIVE + HOVER */
.sidebar li a:hover,
.sidebar li a.active{
  background:#ffc107;
  border-radius:25px 0 0 25px;
  color:#000;
  font-weight:600;
}

/* SUBMENU */
.sidebar .submenu{
  background:black;
  margin-left: -10px;
  font-size: 14px;

}

.sidebar .submenu li a{
  padding:7px 35px;
  font-size:14px;

  color:#9ca3af;
}

/* Submenu hover disabled */
.sidebar .submenu li a:hover{
  background: transparent;
  color:#9ca3af;   /* same default color */
  border-radius:0;
}


/* ARROW ROTATE */
.nav-link[aria-expanded="true"] .bi-chevron-down{
  transform:rotate(180deg);
  transition:.3s;
}
/* Premium smooth submenu animation */
.sidebar .collapse{
  transition: height .45s ease;
  overflow: hidden;
}

.sidebar .collapse .submenu-item{
  transition: opacity .25s ease, transform .25s ease;
}

/* closing state */
.sidebar .collapse.closing .submenu-item{
  opacity:0;
  transform: translateY(-6px);
}
/* Dropdown active background on click */
/* Menu open (clicked) state */
.sidebar a[aria-expanded="true"]{
  background:#ffc107;
  border-radius:25px 0 0 25px;
  color:#000;
  font-weight:600;
}


/* CONTENT */
.content{
  margin-left:280px;
  transition:.3s;
}

/* DESKTOP */
@media (min-width:992px){
  .sidebar{
    transform:translateX(0);
  }
}
@media (max-width: 991px) {
  .sidebar {
    height: 100vh;
    overflow-y: auto;
    padding-top: 93px; /* header height ke hisab se */
  }
}   
/* MOBILE */
@media (max-width:991px){
  .sidebar{
    top:0;
    transform:translateX(-100%);
    height:100vh;
    overflow-y:auto;
  }
  .sidebar.show{
    transform:translateX(0);
  }
  .content{
    margin-left:0;
  }
}
.footer{
  background:linear-gradient(
    to right,
    #000000,
    #0b0f14,
    #000000
  );
  border-top:1px solid #1f2937;
  color:#cbd5e1;
}

.footer small{
  font-size:13px;
  letter-spacing:.3px;
}
/* Footer */
.mobile-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: #000;
  margin-top: 100px !important;
  border-top: 1px solid #525252;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 999;
}

/* Normal items */
.mobile-footer .item {
  color: #aaa;
  text-decoration: none;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-footer .item i {
  font-size: 18px;
  margin-bottom: 4px;
}

/* Active */
.mobile-footer .item.active {
  color: #f5d547;
}

/* Plus Button */
.plus-btn {
  width: 55px;
  height: 55px;
  background: #f5d547;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  top: -25px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.plus-btn i {
  font-size: 22px;
  color: #000;
}

/* Desktop par hide */
@media (min-width: 768px) {
  .mobile-footer {
    display: none;
  }
}
html, body{
  height:100%;
}

body{
  display:flex;
  flex-direction:column;
}

.main-wrapper{
  flex:1;   /* ⭐ yahi magic hai */
}


/* Desktop view only */
@media (min-width: 992px) {
  .footer {
    padding-left: 230px;   /* jitna gap chahiye utna */
  }
}
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

/* Content area ko padding do taki footer ke neeche na dikhe */
.content {
  padding-bottom: 70px; /* Footer height ke hisab se adjust */
}



/* ================= PAGE CONTENT ================= */
.history-title{
  font-size:24px;
  font-weight:600;
  margin-bottom:25px;
  margin-top: 20px;
}

.filter-box{
  display:flex;
  align-items:flex-end;
  gap:40px;
  flex-wrap:wrap;
}

.filter-item label{
  font-size:17px;
  opacity:.85;
  font-weight: 600;

}

.filter-item .value{
  font-size:14px;
  padding-bottom:6px;
  border-bottom:1px solid white !important;
  min-width:480px;
}

.search-btn{
  background:#ffca4f;
  border:none;
  color:#000;
  font-weight:600;
  padding:8px 22px;
  border-radius:8px;
}

.table-wrapper{
  margin-top:30px;
background-color: #030508;
 border:1px solid #1f2937;
  border-radius:12px;
  padding:18px;
}

.search-value{
  text-align:right;
  font-size:14px;
  font-weight: 600;
  opacity:.8;
  margin-bottom: 30px;

  padding-bottom:8px;
}

/* EXACT SAME LOOK AS .value */
.value-input{
  background: transparent;
  border: none;
  border-bottom: 1px solid white;
  color: #fff;
  font-size:15px;
  font-weight: 800;
  padding: 0 0 6px;
  min-width:280px;
  outline: none;
  appearance: none;
  width: 350px;
  -webkit-appearance: none;
}

/* calendar icon ko subtle rakho */
.value-input::-webkit-calendar-picker-indicator{
  filter: invert(1);
  opacity:.6;
  cursor:pointer;
}

/* focus pe bhi design same */
.value-input:focus{
  border-bottom-color: rgba(255,255,255,.25);
}
.empty-box
{
    font-size: 25px;
    text-align: center;
    background-color: #424242;
    padding: 20px;
    font-weight: 600;
}
/* ================= FOOTER ================= */

/* SEARCH INPUT BASE */
.search-input{
  float:right;
  width:30%;
  background:#030508;
  border:none;
  border-bottom:1px solid #fff;
  color:#fff;
  font-weight:600;
  font-size:16px;
  outline:none;
  padding:4px 0;
}

/* MOBILE RESPONSIVE */
@media (max-width:768px){
  .search-input{
    float:none;
    width:100%;
    font-size:14px;
    margin-bottom:15px;
  }

  .search-value{
    text-align:left;
  }
  .empty-box
  {
    font-size:18px;
  }
  .value-input
  {
    width:300px;
  
  }
}

